<?php
		include("session.inc");
		include("dbconn.inc");
		include("dbfuc.inc");		
		$user=$_SESSION["user"];
		$curid=$_SESSION["curid"];
		$dbconnection=$_SESSION["dbconnection"];		
		session_start();
		$errormsg="";
		if(session_is_registered("dbconnection") )
		{
			//$no=$_SESSION["maxno"];
			//$sql="update log1 set outdate = now() where no= $no and userid='$user'";
			//$rs=mysql_query($sql);
			//mysql_close();
			session_destroy(); 
			header("location:index.php");
		}
		else
		{
			$errormsg="Your Session is Expired..Please Login Again";
			header("location:index.php?error=$errormsg");
			
		}	
?>
